package com.lgy.dao;

import com.lgy.pojo.Car;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CarDao {
    int deleteByPrimaryKey(@Param("carId")Integer carId);

    int insert(Car record);

    int insertSelective(Car record);

    Car selectByPrimaryKey(@Param("carId")Integer carId);

    int updateByPrimaryKeySelective(Car record);

    int updateByPrimaryKey(Car record);

    List<Car> findCarAllById(@Param("seriesId")Integer seriesId);

    Car findCarPriceById(@Param("carId")Integer carId);

    List<Car> selectCarByBrandOrSeries(@Param("brandId") Integer brandId,@Param("seriesId") Integer seriesId);
}